isMain

public abstract boolean isMain()

Returns true if the frame is a main (top-level) frame in the browser.